package com.zxd.generics_class;

/**
 * ClassName:Test
 * Package:com.zxd.generics_class
 *
 * @Date:2023/9/22 11:05
 * @Author:zxde
 */
public class Test {
    public static void main(String[] args) {
        MyArrayList<String> myArrayList = new MyArrayList<>();
        myArrayList.add("java1");
        myArrayList.add("java2");
        myArrayList.add("java3");
        myArrayList.add("java4");

        for (int i = 0; i < myArrayList.getSize(); i++) {
            System.out.println(myArrayList.get(i));
        }
    }
}
